import { AppRegistry } from 'react-native';
import App from './src/App';
import ApolloApp from './src/ApolloApp';
import { name as appName } from './app.json';
import { Deviceinfo } from './src/tools';
import { UIManager } from 'react-native';
import { useScreens } from 'react-native-screens';

//启用原生screen , 使得平台可自行优化内存使用
useScreens();

//开启布局动画
UIManager.setLayoutAnimationEnabledExperimental && UIManager.setLayoutAnimationEnabledExperimental(true);

//debug 隐藏warning
console.disableYellowBox = true;

let device_init = Deviceinfo.shared;

AppRegistry.registerComponent(appName, () => ApolloApp);
